package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjReportFilesMapper;
import com.mind.invoice.domain.AjReportFiles;
import com.mind.invoice.service.IAjReportFilesService;

/**
 * 附件Service业务层处理
 * 
 * @author today
 * @date 2025-04-25
 */
@Service
public class AjReportFilesServiceImpl implements IAjReportFilesService 
{
    @Autowired
    private AjReportFilesMapper ajReportFilesMapper;

    /**
     * 查询附件
     * 
     * @param id 附件主键
     * @return 附件
     */
    @Override
    public AjReportFiles selectAjReportFilesById(Long id)
    {
        return ajReportFilesMapper.selectAjReportFilesById(id);
    }

    /**
     * 查询附件列表
     * 
     * @param ajReportFiles 附件
     * @return 附件
     */
    @Override
    public List<AjReportFiles> selectAjReportFilesList(AjReportFiles ajReportFiles)
    {
        return ajReportFilesMapper.selectAjReportFilesList(ajReportFiles);
    }

    /**
     * 新增附件
     * 
     * @param ajReportFiles 附件
     * @return 结果
     */
    @Override
    public int insertAjReportFiles(AjReportFiles ajReportFiles)
    {
        return ajReportFilesMapper.insertAjReportFiles(ajReportFiles);
    }

    /**
     * 修改附件
     * 
     * @param ajReportFiles 附件
     * @return 结果
     */
    @Override
    public int updateAjReportFiles(AjReportFiles ajReportFiles)
    {
        return ajReportFilesMapper.updateAjReportFiles(ajReportFiles);
    }

    /**
     * 批量删除附件
     * 
     * @param ids 需要删除的附件主键
     * @return 结果
     */
    @Override
    public int deleteAjReportFilesByIds(Long[] ids)
    {
        return ajReportFilesMapper.deleteAjReportFilesByIds(ids);
    }

    /**
     * 删除附件信息
     * 
     * @param id 附件主键
     * @return 结果
     */
    @Override
    public int deleteAjReportFilesById(Long id)
    {
        return ajReportFilesMapper.deleteAjReportFilesById(id);
    }
}
